Yes you can do that, but you are likely to get a seg fault or other unexpected behavior if you do something like that.
Just because something works SOMETIMES doesn't mean it will work ALL times.
Yes you can do that, but you are likely to get a seg fault or other unexpected behavior if you do something like that.
Just because something works SOMETIMES doesn't mean it will work ALL times.
The memory you're writing to isn't allocated, so it's undefined.
Operating Systems:
- Ubuntu 9.04
- XP
Compiler: gcc